#!/bin/bash

FILE=$1

exec_do()
{


echo "" > /data/work/workspace/suitang/log/${vid}

if [ -e /data/work/workspace/suitang/qq/${name}.mp4 ] ; then
   echo "${name} has download"
   return
fi

echo "/home/zy/zy-code-unp/ku6/ku6downloader/ku6downloader_g   -i /home/zy/zy-code-unp/ku6/ku6downloader/js/   -r  url=http://v.qq.com/cover/q/quny9m5degpt47c/${vid}.html  -o flv/  -f ${name}"

/home/zy/zy-code-unp/ku6/ku6downloader/ku6downloader_g   -i /home/zy/zy-code-unp/ku6/ku6downloader/js/   -r  url=http://v.qq.com/cover/q/quny9m5degpt47c/${vid}.html  -o /data/work/workspace/suitang/  -f ${name} >/data/work/workspace/suitang/log/${vid} 2>&1 

}

cat $FILE | while read line
do

vid=`echo $line | awk '{print $1}'`
name=`echo $line | awk '{print $2}'`

echo "${vid} ${name}"


exec_do

done
